package com.applet.system.controller;

import com.applet.system.entity.HttpResult;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.applet.system.service.MenuService;

@RestController
@RequestMapping("/system/resource")
public class ResourceController {

	@Autowired
	private MenuService menuServiceImpl;
	
	@GetMapping("/tree")
	public HttpResult getResources() {
		return new HttpResult(this.menuServiceImpl.getResources());
	}
}
